Skip to content

Commit

Permalink
Enable LD_PRELOAD tests (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avgor46 authored Mar 21, 2024
1 parent 064d0b7 commit 4a8ad43
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 36 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ env:
jobs:
ubuntu-latest:

# Tests that use LD_PRELOAD are run only on Ubuntu 20.04, see #208
runs-on: ubuntu-20.04
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install Dependences
run: |
sudo apt update && sudo apt install -y gdb pip curl python3.9-dev llvm \
sudo apt update && sudo apt install -y gdb pip curl python3.10-dev llvm \
openjdk-17-jdk ca-certificates gnupg
pip3 install atheris
sudo mkdir -p /etc/apt/keyrings
Expand Down
1 change: 0 additions & 1 deletion casr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ required-features = ["dojo"]

[dev-dependencies]
lazy_static = "1.4"
lsb_release = "0.1"
32 changes: 0 additions & 32 deletions casr/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4049,10 +4049,6 @@ fn test_casr_libfuzzer() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_libfuzzer_atheris() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
use std::collections::HashMap;

let paths = [
Expand Down Expand Up @@ -4239,10 +4235,6 @@ fn test_casr_java() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_java_native_lib() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
let paths = [
abs_path("tests/casr_tests/java/Test2.java"),
abs_path("tests/casr_tests/java/Test2.cpp"),
Expand Down Expand Up @@ -4378,10 +4370,6 @@ fn test_casr_python_atheris() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_python_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4489,10 +4477,6 @@ fn test_casr_san_python_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_san_atheris_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4604,10 +4588,6 @@ fn test_casr_san_atheris_df() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_python_call_san_df() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// Double free python C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/python");
Expand Down Expand Up @@ -4977,10 +4957,6 @@ fn test_casr_js_jazzer() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down Expand Up @@ -5116,10 +5092,6 @@ fn test_casr_js_native() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native_jsfuzz() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS jsfuzz C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down Expand Up @@ -5255,10 +5227,6 @@ fn test_casr_js_native_jsfuzz() {
#[test]
#[cfg(target_arch = "x86_64")]
fn test_casr_js_native_jazzer() {
if lsb_release::info().unwrap().version == "22.04" {
// LD_PRELOAD hangs, see #208
return;
}
// JS jsfuzz C extension test
// Copy files to tmp dir
let work_dir = abs_path("tests/casr_tests/js");
Expand Down

0 comments on commit 4a8ad43

Please sign in to comment.