diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2023-04-20 12:18:25 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2023-04-20 12:18:59 -0400 |
commit | 700afe193945e7c55bee0d6c16089f33d3c45f03 (patch) | |
tree | 4cf0fb9615404c9bec41f942e70e2bfdb4e016d1 /smoke_test | |
parent | 9690f783569ebeb166dfc1745c0ba0f48db523d0 (diff) |
Delete pytest
These tests have never been useful; drop them.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'smoke_test')
-rwxr-xr-x | smoke_test | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/smoke_test b/smoke_test deleted file mode 100755 index 11228088..00000000 --- a/smoke_test +++ /dev/null @@ -1,81 +0,0 @@ -#!/bin/bash -# -# This is a smoke test of bcachefs-tools. -# -# It builds the source with multiple options (debug, release, valgrind, FUSE) -# and runs the test suite. -# -# Returns 0 on success, nonzero on any failure. -# -# Dependencies: -# -# valgrind, python3-pytest, python3-pytest-xdist -# -# On debian/ubuntu based systems, install with: -# -# apt install valgrind python3-pytest python3-pytest-xdist -# -# You also currently need fuse 3.7 or later. Fuse 3.7 unfortunately requires -# debian sid or bullseye at this time, so you may need to install from source. - -set -e - -PYTEST="${PYTEST:-pytest-3}" -spam=$(mktemp) -unset BCACHEFS_FUSE BCACHEFS_TEST_USE_VALGRIND BCACHEFS_DEBUG - -trap "set +x; cat ${spam}; rm -f ${spam} ; echo; echo FAILED." EXIT - -echo -- Verify dependencies -- -pkg-config --atleast-version 3.7.0 fuse3 -python3 -c "import pytest" -python3 -c "import xdist" -which valgrind > /dev/null -echo OK - -JOBS=$(nproc) -function build() { - echo Building. - make -j ${JOBS} clean > ${spam} 2>&1 - make -j ${JOBS} tests bcachefs > ${spam} 2>&1 - truncate -s0 ${spam} -} - -function test() { - echo Running tests. - ( - ${PYTEST} -n${JOBS} - ) > ${spam} 2>&1 -} - -function test_vg() { - echo Running tests with valgrind. - ( - export BCACHEFS_TEST_USE_VALGRIND=yes - ${PYTEST} -n${JOBS} - ) > ${spam} 2>&1 -} - - -echo -- Test: default -- -build -test - -echo -- Test: debug -- -export BCACHEFS_DEBUG=1 -build -test - -echo -- Test: debug with valgrind -- -test_vg - -#echo -- Test: fuse debug -- -#export BCACHEFS_FUSE=1 -#build -#test - -#echo -- Test: fuse debug with valgrind -- -#test_vg - -rm -f ${spam} -trap "set +x; echo; echo SUCCESS." EXIT |