Last active
August 29, 2015 14:25
-
-
Save hausdorff/adbd43f4525257c37b8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Looks through object files for the containerizer tests, gets all the symbols, | |
| # and looks for the ones with the string "process::". Then, we prettify and | |
| # put everythign in stdout. We run this from our root build folder. | |
| # | |
| # The containerizer object files are: | |
| # ./src/tests/mesos_tests-external_containerizer_test.o | |
| # ./src/tests/mesos_tests-containerizer_tests.o | |
| # ./src/tests/mesos_tests-docker_containerizer_tests.o | |
| # ./src/tests/mesos_tests-containerizer.o | |
| # ./src/tests/mesos_tests-composing_containerizer_tests.o | |
| functions="" | |
| for f in ./src/tests/mesos_tests-containerizer.o ./src/tests/mesos_tests-containerizer_tests.o ./src/tests/mesos_tests-composing_containerizer_tests.o ./src/tests/mesos_tests-external_containerizer_test.o | |
| do | |
| tmp=$(nm -P $f | c++filt | grep "process::" | sort) | |
| functions="$functions\n$tmp" | |
| done | |
| #echo "$functions" | |
| result=$(echo "$functions" | sort | uniq) | |
| echo "$result" | |
| #nm -P tests-io_tests.o | c++filt | grep "process::" | sort | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment