aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2010-03-05 13:18:40 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2010-03-05 13:18:40 +0000
commit52f87a9d3afc7d8932491383890b5db3e8d7965e (patch)
tree411be2e47a75d484ece9a0fd0664c5544f06b499
parentab79f790c0f51b6d861f123adae73126153c55d0 (diff)
downloadspec-helper-52f87a9d3afc7d8932491383890b5db3e8d7965e.tar
spec-helper-52f87a9d3afc7d8932491383890b5db3e8d7965e.tar.gz
spec-helper-52f87a9d3afc7d8932491383890b5db3e8d7965e.tar.bz2
spec-helper-52f87a9d3afc7d8932491383890b5db3e8d7965e.tar.xz
spec-helper-52f87a9d3afc7d8932491383890b5db3e8d7965e.zip
drop no longer used test suite for dead stripping functionality
-rwxr-xr-xt/run.t2
-rwxr-xr-xt/strip_and_check_elf_files.t63
2 files changed, 1 insertions, 64 deletions
diff --git a/t/run.t b/t/run.t
index 7dfed7d..4f8d9e7 100755
--- a/t/run.t
+++ b/t/run.t
@@ -21,7 +21,7 @@ foreach my $prog qw/
remove_info_dir
fix_pamd
fix_eol
- strip_and_check_elf_files
+ check_elf_files
/ {
($out, $err) = run_prog($prog);
diff --git a/t/strip_and_check_elf_files.t b/t/strip_and_check_elf_files.t
deleted file mode 100755
index 6975da8..0000000
--- a/t/strip_and_check_elf_files.t
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/usr/bin/perl
-# $Id: gprintify 257533 2009-05-23 12:45:15Z guillomovitch $
-
-use strict;
-use warnings;
-use Utils qw/run get_md5/;
-use Test::More;
-use File::Temp qw/tempdir/;
-use File::Path qw/make_path/;
-
-plan tests => 2;
-
-# test the script itself
-my ($buildroot, $test, $before, $after);
-
-($buildroot, $test) = setup();
-
-$before = get_md5($test);
-run($buildroot, 'strip_and_check_elf_files');
-$after = get_md5($test);
-
-isnt(
- $before,
- $after,
- 'test should be modified'
-);
-
-($buildroot, $test) = setup();
-
-$before = get_md5($test);
-$ENV{EXCLUDE_FROM_STRIP} = 'test';
-run($buildroot, 'strip_and_check_elf_files');
-$after = get_md5($test);
-
-is(
- $before,
- $after,
- 'EXCLUDE_FROM_STRIP should prevent test stripping'
-);
-
-sub setup {
-
- my $source = File::Temp->new(UNLINK => 1, SUFFIX => '.c');
- print $source <<'EOF';
-#include <stdio.h>
-
-int main()
-{
- printf("Hello world!\n");
- return 0;
-}
-EOF
- close($source);
-
- my $buildroot = tempdir(CLEANUP => ($ENV{TEST_DEBUG} ? 0 : 1));
- my $bindir = $buildroot . '/usr/bin';
- my $test = $bindir . '/test';
- make_path($bindir);
-
- system('gcc', '-o', $test, $source);
-
- return ($buildroot, $test);
-}