[tests] Remove test that used Xamarin.Mac/Classic. (#8151)

This test need substantial updates to work with Xamarin.Mac/Unified, and
there's very little gain in doing so, so just remove it.
This commit is contained in:
Rolf Bjarne Kvinge 2020-03-20 11:26:58 +01:00 коммит произвёл GitHub
Родитель 79a089cd0d
Коммит fcbb90982f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 0 добавлений и 93 удалений

Просмотреть файл

@ -1,8 +1,5 @@
TOP = ..
ifdef INCLUDE_MAC
SUBDIRS += no-mmp
endif
# disabled for now: mac-test
include $(TOP)/Make.config

4
tests/no-mmp/.gitignore поставляемый
Просмотреть файл

@ -1,4 +0,0 @@
*.exe
*.dylib
*.app
no-mmp

Просмотреть файл

@ -1,11 +0,0 @@
using System;
using MonoMac.AppKit;
class NoMMP {
static int Main ()
{
NSApplication.Init ();
Console.WriteLine ("Success");
return 0;
}
}

Просмотреть файл

@ -1,28 +0,0 @@
TOP = ../..
include $(TOP)/Make.config
include $(TOP)/mk/rules.mk
no-mmp: main.m
clang -o$@ main.m -framework AppKit -arch i386
no-mmp.exe: Main.cs XamMac.dll libxammac.dylib
$(SYSTEM_CSC) Main.cs -out:$@ -r:XamMac.dll
XamMac.dll: $(TOP)/src/build/mac/compat/XamMac.dll
cp $^ $@
libxammac.dylib: $(TOP)/launcher/.libs/libxammac.dylib
cp $^ $@
no-mmp.app: no-mmp.exe no-mmp
rm -Rf no-mmp.app
mkdir -p no-mmp.app/Contents/MacOS
cp no-mmp no-mmp.app/Contents/MacOS
mkdir -p no-mmp.app/Contents/MonoBundle
cp no-mmp.exe* no-mmp.app/Contents/MonoBundle
cp libxammac.dylib no-mmp.app/Contents/MonoBundle
cp XamMac.dll* no-mmp.app/Contents/MonoBundle
run: no-mmp.app
no-mmp.app/Contents/MacOS/no-mmp

Просмотреть файл

@ -1,47 +0,0 @@
//gcc -m32 monostub.m -o monostub -framework AppKit
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <dlfcn.h>
#include <errno.h>
#include <ctype.h>
#import <Cocoa/Cocoa.h>
#define MONO_LIB_PATH(lib) "/Library/Frameworks/Mono.framework/Versions/Current/lib/"lib
typedef int (* mono_main) (int argc, char **argv);
void *libmono;
int main (int argc, char **argv)
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
libmono = dlopen (MONO_LIB_PATH ("libmono-2.0.dylib"), RTLD_LAZY);
if (libmono == NULL) {
fprintf (stderr, "Failed to load libmono-2.0.dylib: %s\n", dlerror ());
abort ();
}
mono_main _mono_main = (mono_main) dlsym (libmono, "mono_main");
if (!_mono_main) {
fprintf (stderr, "Could not load mono_main(): %s\n", dlerror ());
abort ();
}
[pool drain];
NSString *appDir = [[NSBundle mainBundle] bundlePath];
char *argv2 [2];
argv2 [0] = argv [0];
argv2 [1] = [[appDir stringByAppendingPathComponent:@"Contents/MonoBundle/no-mmp.exe"] UTF8String];
return _mono_main (2, argv2);
}