cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

test_override_return.sh (276B)


      1#!/bin/bash
      2
      3rm -r tmpmnt
      4rm -f testfile.img
      5dd if=/dev/zero of=testfile.img bs=1M seek=1000 count=1
      6DEVICE=$(losetup --show -f testfile.img)
      7mkfs.btrfs -f $DEVICE
      8mkdir tmpmnt
      9./tracex7 $DEVICE
     10if [ $? -eq 0 ]
     11then
     12	echo "SUCCESS!"
     13else
     14	echo "FAILED!"
     15fi
     16losetup -d $DEVICE