mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
8374be46d2
Cogl unit tests are just functions inside normal code files that needs to be dload'ed by the test binary. So in case unit-tests are enabled, we need to export those symbols. Since map file can't be overridden, use a configure_file to generate the map file when tests are enabled, in order to export the needed symbols. Then goes through the source files to look unit tests checking for their macro definition and load them with the runner script. https://gitlab.gnome.org/GNOME/mutter/merge_requests/442
9 lines
183 B
Bash
Executable File
9 lines
183 B
Bash
Executable File
#!/bin/sh
|
|
|
|
inputfile="$1"
|
|
outputfile="$2"
|
|
|
|
sed -n -e 's/^ \{1,\}ADD_TEST *( *\([a-zA-Z0-9_]\{1,\}\).*/\1/p' "$inputfile" | while read -r test; do
|
|
echo "$test" >> "$outputfile"
|
|
done
|