Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=smbc
4
5 %:
6 dh $@ --buildsystem=pybuild
7
8 override_dh_installchangelogs:
9 dh_installchangelogs NEWS
10
11 override_dh_auto_test:
12 # Run all tests only if smbd is available else run selective tests.
13 if command -v smbd >/dev/null 2>&1; then \
14 dh_auto_test; \
15 else \
16 PYBUILD_TEST_ARGS="tests -k 'not test_auth_succes \
17 and not test_auth_failed_noauth \
18 and not test_auth_failed_nouser \
19 and not test_mkdir \
20 and not test_mkdir_error_exists \
21 and not test_list_dir \
22 and not test_stat \
23 and not test_stat_error_notfound \
24 and not test_cleanup \
25 and not test_auth_failed_nopass \
26 and not test_rename'" \
27 dh_auto_test; \
28 fi