devtools: load all drivers in null test
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 15 Oct 2020 15:05:52 +0000 (16:05 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Oct 2020 20:14:54 +0000 (22:14 +0200)
Rather than specifying specific drivers in the driver directory to load, we
can just pass in the whole driver directory to the "-d" EAL flag, causing
all drivers to load. This makes the load of driver independent of any
specific driver names.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
devtools/test-null.sh

index 548de81..fa194f0 100755 (executable)
@@ -20,8 +20,8 @@ if [ ! -f "$testpmd" ] ; then
 fi
 
 if ldd $testpmd | grep -q librte_ ; then
-       export LD_LIBRARY_PATH=$build/drivers:$build/lib:$LD_LIBRARY_PATH
-       libs='-d librte_mempool_ring.so -d librte_pmd_null.so'
+       export LD_LIBRARY_PATH=$build/lib:$LD_LIBRARY_PATH
+       libs="-d $build/drivers"
 else
        libs=
 fi