diff --git a/debian/tests/copy-modules b/debian/tests/copy-modules deleted file mode 100755 index 1bb2e3e..0000000 --- a/debian/tests/copy-modules +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/sh -eu - -datadir="debian/tests/copy-modules-data" -moddir="$AUTOPKGTEST_TMP/modules" - -## Create dummy module files and modules.builtin -#while read -r filename; do -# mkdir -p "$moddir/$(dirname "$filename")" -# touch "$moddir/$filename" -#done < "$datadir/filelist" -#cp "$datadir/modules.builtin" "$moddir/" - -my_rc=0 - -export KW_DEFCONFIG_DIR="$PWD/$datadir" - -export SOURCEDIR=$datadir/foo -export KW_DEFCONFIG_DIR=debian/installer -KW_CONFIG_DIR=debian/installer/amd64 - -version=3.14-2 -flavor=amd64 -installedname=1.23-0-amd64 - -bash -x commands/copy-modules $version $flavor $installedname -exit - -for input in "$datadir"/*.in; do - name="$(basename "${input%.in}")" - echo "I: Testing preprocess case $name" - - output="$AUTOPKGTEST_TMP/$name.out" - error="$AUTOPKGTEST_TMP/$name.err" - rc=0; commands/preprocess "$input" "$moddir" >"$output" 2>"$error" || rc=$? - - # Replace source locations in error messages, so expected error - # messages don't need to be updated for every change of line no. - sed -i 's/at [^ ]* line [0-9]*/at SOMEWHERE/' "$error" - - # Find expected output, error messages and exit code - exp_output="$datadir/$name.out" - if [ -f "$datadir/$name.err" ]; then - exp_error="$datadir/$name.err" - else - exp_error=/dev/null - fi - if [ -f "$datadir/$name.rc" ]; then - exp_rc="$(cat "$datadir/$name.rc")" - else - exp_rc=0 - fi - - # Compare actual with expected - if diff -q "$exp_output" "$output" && diff -q "$exp_error" "$error" \ - && [ "$rc" = "$exp_rc" ]; then - echo "I: pass" - else - diff -u "$exp_output" "$output" || true - diff -u "$exp_error" "$error" || true - echo "E: rc=$rc" - my_rc=1 - fi -done - -exit "$my_rc" diff --git a/debian/tests/preprocess-symlink b/debian/tests/preprocess-symlink deleted file mode 100755 index e4787cb..0000000 --- a/debian/tests/preprocess-symlink +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/sh -eu - -datadir="debian/tests/preprocess-data" -moddir="$AUTOPKGTEST_TMP/modules" - -# Create dummy module files and modules.builtin -while read -r filename; do - mkdir -p "$moddir/$(dirname "$filename")" - touch "$moddir/$filename" -done < "$datadir/filelist" -cp "$datadir/modules.builtin" "$moddir/" - -# Test for Debian Bug #?????? -ln -sf $moddir ${moddir}.symlink -moddir="${moddir}.symlink" - -my_rc=0 - -export KW_DEFCONFIG_DIR="$PWD/$datadir" -for input in "$datadir"/*.in; do - name="$(basename "${input%.in}")" - echo "I: Testing preprocess case $name" - - output="$AUTOPKGTEST_TMP/$name.out" - error="$AUTOPKGTEST_TMP/$name.err" - rc=0; commands/preprocess "$input" "$moddir" >"$output" 2>"$error" || rc=$? - - # Replace source locations in error messages, so expected error - # messages don't need to be updated for every change of line no. - sed -i 's/at [^ ]* line [0-9]*/at SOMEWHERE/' "$error" - - # Find expected output, error messages and exit code - exp_output="$datadir/$name.out" - if [ -f "$datadir/$name.err" ]; then - exp_error="$datadir/$name.err" - else - exp_error=/dev/null - fi - if [ -f "$datadir/$name.rc" ]; then - exp_rc="$(cat "$datadir/$name.rc")" - else - exp_rc=0 - fi - - # Compare actual with expected - if diff -q "$exp_output" "$output" && diff -q "$exp_error" "$error" \ - && [ "$rc" = "$exp_rc" ]; then - echo "I: pass" - else - diff -u "$exp_output" "$output" || true - diff -u "$exp_error" "$error" || true - echo "E: rc=$rc" - my_rc=1 - fi -done - -exit "$my_rc"