Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin Now, profiling works for GCC9 on aarch64{,eb}.



details:   https://anonhg.NetBSD.org/src/rev/600217c59bcd
branches:  trunk
changeset: 944836:600217c59bcd
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Oct 13 06:49:27 2020 +0000

description:
Now, profiling works for GCC9 on aarch64{,eb}.

Note that it seems to work even for GCC8, according to log data of
official test runs, e.g.,

        https://releng.netbsd.org/b5reports/evbarm-aarch64/2020/2020.09.01.15.45.20/test.log

diffstat:

 tests/usr.bin/c++/t_call_once.sh         |  12 +-----------
 tests/usr.bin/c++/t_cxxruntime.sh        |  12 +-----------
 tests/usr.bin/c++/t_hello.sh             |  12 +-----------
 tests/usr.bin/c++/t_pthread_once.sh      |  12 +-----------
 tests/usr.bin/c++/t_static_destructor.sh |  12 +-----------
 tests/usr.bin/cc/t_hello.sh              |   7 +------
 6 files changed, 6 insertions(+), 61 deletions(-)

diffs (186 lines):

diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/c++/t_call_once.sh
--- a/tests/usr.bin/c++/t_call_once.sh  Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/c++/t_call_once.sh  Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_call_once.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_call_once.sh,v 1.4 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -112,11 +112,6 @@
 }
 EOF
        atf_check -s exit:0 -o ignore -e ignore c++ -pg -o call_once test.cpp -pthread
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once
 }
 
@@ -233,11 +228,6 @@
        atf_check -s exit:0 -o ignore -e ignore \
            c++ -pg -o call_once test.cpp -L. -ltest -pthread
 
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        export LD_LIBRARY_PATH=.
        atf_check -s exit:0 -o inline:"hello, world!\n" ./call_once
 }
diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/c++/t_cxxruntime.sh
--- a/tests/usr.bin/c++/t_cxxruntime.sh Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/c++/t_cxxruntime.sh Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_cxxruntime.sh,v 1.4 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_cxxruntime.sh,v 1.5 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -105,11 +105,6 @@
 int main(void) {std::cout << "hello world" << std::endl;exit(0);}
 EOF
        atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
 
@@ -213,11 +208,6 @@
        atf_check -s exit:0 -o ignore -e ignore \
            c++ -pg -o hello test.cpp -L. -ltest
 
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        export LD_LIBRARY_PATH=.
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/c++/t_hello.sh
--- a/tests/usr.bin/c++/t_hello.sh      Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/c++/t_hello.sh      Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_hello.sh,v 1.4 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_hello.sh,v 1.5 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -102,11 +102,6 @@
 int main(void) {printf("hello world\n");exit(0);}
 EOF
        atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
 
@@ -208,11 +203,6 @@
        atf_check -s exit:0 -o ignore -e ignore \
            c++ -pg -o hello test.cpp -L. -ltest
 
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        export LD_LIBRARY_PATH=.
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
 }
diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/c++/t_pthread_once.sh
--- a/tests/usr.bin/c++/t_pthread_once.sh       Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/c++/t_pthread_once.sh       Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_pthread_once.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_pthread_once.sh,v 1.4 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2018 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -110,11 +110,6 @@
 }
 EOF
        atf_check -s exit:0 -o ignore -e ignore c++ -pg -o pthread_once test.cpp -pthread
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once
 }
 
@@ -227,11 +222,6 @@
        atf_check -s exit:0 -o ignore -e ignore \
            c++ -pg -o pthread_once test.cpp -L. -ltest -pthread
 
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        export LD_LIBRARY_PATH=.
        atf_check -s exit:0 -o inline:"hello, world!\n" ./pthread_once
 }
diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/c++/t_static_destructor.sh
--- a/tests/usr.bin/c++/t_static_destructor.sh  Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/c++/t_static_destructor.sh  Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_static_destructor.sh,v 1.3 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_static_destructor.sh,v 1.4 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2017 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -123,11 +123,6 @@
 int main(void) {struct B b;return 0;}
 EOF
        atf_check -s exit:0 -o ignore -e ignore c++ -pg -o hello test.cpp
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello
 }
 
@@ -280,11 +275,6 @@
        atf_check -s exit:0 -o ignore -e ignore \
            c++ -pg -o hello test.cpp -L. -ltest
 
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        export LD_LIBRARY_PATH=.
        atf_check -s exit:0 -o inline:"CTOR A\nCTOR B\nDTOR B:10\nDTOR A:20\n" ./hello
 }
diff -r b10d9dc0d4ac -r 600217c59bcd tests/usr.bin/cc/t_hello.sh
--- a/tests/usr.bin/cc/t_hello.sh       Tue Oct 13 01:59:55 2020 +0000
+++ b/tests/usr.bin/cc/t_hello.sh       Tue Oct 13 06:49:27 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: t_hello.sh,v 1.9 2020/02/11 06:26:19 riastradh Exp $
+#      $NetBSD: t_hello.sh,v 1.10 2020/10/13 06:49:27 rin Exp $
 #
 # Copyright (c) 2011 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -72,11 +72,6 @@
 int main(void) {printf("hello world\n");exit(0);}
 EOF
        atf_check -s exit:0 -o ignore -e ignore cc -o hello -pg test.c
-       case `uname -p` in
-       aarch64)
-               atf_expect_fail 'cc -pg is busted on aarch64'
-               ;;
-       esac
        atf_check -s exit:0 -o inline:"hello world\n" ./hello
        atf_check -s exit:0 -o ignore -e ignore cc -o hello2 -fprofile-generate test.c
        atf_check -s exit:0 -o inline:"hello world\n" ./hello2



Home | Main Index | Thread Index | Old Index