1 # GNU objdump version checker
4 # objdump -v | awk -f chkobjdump.awk
6 # objdump version 2.19 or later is OK for the test.
13 for (i =
3; i
<=
NF; i
++)
14 if (match($
(i
), "^[0-9]")) {
19 printf("Warning: Failed to find objdump version number.\n");
22 split(verstr
, ver
, ".");
23 if (ver
[1] > od_ver
||
24 (ver
[1] == od_ver
&& ver
[2] >= od_sver
)) {
27 printf("Warning: objdump version %s is older than %d.%d\n",
28 verstr
, od_ver
, od_sver
);
29 print("Warning: Skipping posttest.");
30 # Logic is inverted, because we just skip test without error.