File: taskwarrior

package info (click to toggle)
task 3.4.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,332 kB
  • sloc: cpp: 42,567; python: 12,689; sh: 775; perl: 189; makefile: 35
file content (33 lines) | stat: -rwxr-xr-x 918 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -e -u
[ -d "$AUTOPKGTEST_TMP/" ] # sanity check
cp -a test "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"
mkdir -p home mock src/shell
ln -sf /bin/false mock/scp
# bash_tap_tw expects to find a task binary in a few places
# relative to the current directory
ln -sf /usr/bin/task ./task
export HOME="$PWD/home/"
export PATH="$PWD/mock/:$PATH"
export TASKRC="$HOME/taskrc"
export TASKDATA="$HOME/taskdata"
export TASK_USE_PATH=1

sed -i 's/${CMAKE_SOURCE_DIR}/../g' test/basetest/utils.py

cd test
rm -f bash_completion.test.py tw-1379.test.py version.test.py # broken paths
rm -f custom.test.py hooks.on-modify.test.py info.test.py unusual_task.test.py # depends on make_tc_task binary
rm -f encoding.test.py # regex issues
rm -f template.test.py # not a test, template to write other tests


for py in *.test.py; do
  echo $py
  python3 $py
done
for shtest in *.test.sh; do
  echo $shtest
  bash $shtest
done