File: run_test.sh

package info (click to toggle)
nemo-qml-plugin-contacts 0.3.33-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,052 kB
  • sloc: cpp: 14,575; makefile: 15; sh: 5
file content (7 lines) | stat: -rwxr-xr-x 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
#!/bin/sh

export TESTDIR=$1
export TESTCASE=$2
export DEVICEUSER=$(getent passwd $(grep '^UID_MIN' /etc/login.defs |  tr -s ' ' | cut -d ' ' -f2) | sed 's/:.*//')
export LIBCONTACTS_TEST_MODE=1
/usr/sbin/run-blts-root /bin/su -g privileged -c "/opt/tests/$TESTDIR/$TESTCASE" "$DEVICEUSER"