1*b636d99dSDavid van Moolenbroek#!/bin/sh 2*b636d99dSDavid van Moolenbroek 3*b636d99dSDavid van Moolenbroek# The "verbose" Link Management Protocol test involves a float calculation that 4*b636d99dSDavid van Moolenbroek# may produce a slightly different result depending on the architecture and the 5*b636d99dSDavid van Moolenbroek# compiler (see GitHub issue #333). The reference output was produced using a 6*b636d99dSDavid van Moolenbroek# GCC build and must reproduce correctly on any other GCC build regardless of 7*b636d99dSDavid van Moolenbroek# the architecture. 8*b636d99dSDavid van Moolenbroek 9*b636d99dSDavid van Moolenbroek# A Windows build may have no file named Makefile and also a version of grep 10*b636d99dSDavid van Moolenbroek# that won't return an error when the file does not exist. Work around. 11*b636d99dSDavid van Moolenbroekif [ ! -f ../Makefile ] 12*b636d99dSDavid van Moolenbroekthen 13*b636d99dSDavid van Moolenbroek printf ' %-30s: TEST SKIPPED (no Makefile)\n' 'lmp-v' 14*b636d99dSDavid van Moolenbroekelif grep '^CC = .*gcc' ../Makefile >/dev/null 15*b636d99dSDavid van Moolenbroekthen 16*b636d99dSDavid van Moolenbroek ./TESTonce lmp-v lmp.pcap lmp-v.out '-t -T lmp -v' 17*b636d99dSDavid van Moolenbroekelse 18*b636d99dSDavid van Moolenbroek printf ' %-30s: TEST SKIPPED (compiler is not GCC)\n' 'lmp-v' 19*b636d99dSDavid van Moolenbroekfi 20